package org.linlinjava.litemall.admin.form;

import org.hibernate.validator.constraints.Length;
import org.linlinjava.litemall.admin.vo.order_manage.PlaceOrderContent;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

public class CommodityDescForm {
    @NotNull(message = "类型不能为空")
    private Integer type;
    private String content;
    private String problemContent;
    private String freightContent;
    @Length(min = 0,max = 30,message = "运费说明-简短描述不能超过30个字")
    private String freightContentShort;
    private String distributionModeContent;
    @Length(min = 0,max = 30,message = "配送方式说明-简短描述不能超过30个字")
    private String distributionModeContentShort;
    @Length(min = 0,max = 30,message = "租期说明-简短描述不能超过30个字")
    private String leaseTimeContentShort;
    private String leaseTimeContent;
    private List<@Valid PlaceOrderContent> placeOrderContent;


    private String  afterThatContent;

    public String getAfterThatContent() {
        return afterThatContent;
    }

    public void setAfterThatContent(String afterThatContent) {
        this.afterThatContent = afterThatContent;
    }

    public List<PlaceOrderContent> getPlaceOrderContent() {
        return placeOrderContent;
    }

    public void setPlaceOrderContent(List<PlaceOrderContent> placeOrderContent) {
        this.placeOrderContent = placeOrderContent;
    }

    public String getFreightContentShort() {
        return freightContentShort;
    }

    public void setFreightContentShort(String freightContentShort) {
        this.freightContentShort = freightContentShort;
    }

    public String getDistributionModeContentShort() {
        return distributionModeContentShort;
    }

    public void setDistributionModeContentShort(String distributionModeContentShort) {
        this.distributionModeContentShort = distributionModeContentShort;
    }

    public String getLeaseTimeContentShort() {
        return leaseTimeContentShort;
    }

    public void setLeaseTimeContentShort(String leaseTimeContentShort) {
        this.leaseTimeContentShort = leaseTimeContentShort;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getProblemContent() {
        return problemContent;
    }

    public void setProblemContent(String problemContent) {
        this.problemContent = problemContent;
    }

    public String getFreightContent() {
        return freightContent;
    }

    public void setFreightContent(String freightContent) {
        this.freightContent = freightContent;
    }

    public String getDistributionModeContent() {
        return distributionModeContent;
    }

    public void setDistributionModeContent(String distributionModeContent) {
        this.distributionModeContent = distributionModeContent;
    }

    public String getLeaseTimeContent() {
        return leaseTimeContent;
    }

    public void setLeaseTimeContent(String leaseTimeContent) {
        this.leaseTimeContent = leaseTimeContent;
    }
}
